<?php
session_start();
session_regenerate_id(true);
if(!isset($_SESSION['id'])){
    header('location:index.php');
}


//print_r($_SESSION);
//unset($_SESSION['register_date']);

$_SESSION['vivek'] = 'admin';
print_r($_COOKIE);

?>
<h4>Secure page, Only logged in user can check this page..</h4>
<a href="logout.php">Logout</a>
